package com.aspose.cells;

class zbtk implements zaif {
   private zbp a;
   private com.aspose.cells.b.a.b.zg b;
   private boolean c;
   private Color d;
   private String e;
   private boolean f = true;
   private int g;
   private boolean h = true;
   private int i;
   private boolean j;
   private int k = 0;
   private boolean l = false;
   private int m = 0;
   private boolean n = false;

   zbtk(zbp var1) {
      this.a = var1;
      this.c = true;
      this.d = var1.e().Z().a().a("dk1");
      this.e = "";
      this.g = 100;
      this.i = 0;
   }

   zbp f() {
      return this.a;
   }

   public com.aspose.cells.b.a.b.zg a() {
      if (this.b == null) {
         this.b = zbuk.a(this.f().e().ac());
         this.a(this.a.e().j().j());
      }

      return this.b;
   }

   public void a(com.aspose.cells.b.a.b.zg var1) {
      this.b = var1;
   }

   public Color g() {
      if (this.c) {
         return this.a.e().R() > 40 ? this.a.e().Z().a().a("lt1") : this.a.e().Z().a().a("dk1");
      } else {
         return this.d;
      }
   }

   public void a(Color var1) {
      this.c = false;
      this.d = var1;
   }

   public String b() {
      return this.e;
   }

   public void a(String var1) {
      this.e = var1;
   }

   public boolean h() {
      return this.f;
   }

   public void a(boolean var1) {
      this.f = var1;
   }

   public int c() {
      return this.g;
   }

   public void a(int var1) {
      this.g = var1;
   }

   public int d() {
      return this.h ? 0 : this.i;
   }

   public void b(int var1) {
      this.i = var1;
      this.h = false;
   }

   public boolean i() {
      return this.j;
   }

   public boolean j() {
      return this.h;
   }

   public void b(boolean var1) {
      this.l = var1;
   }

   public int e() {
      return this.m;
   }

   public void c(int var1) {
      this.m = var1;
   }

   int k() {
      return this.k;
   }

   void d(int var1) {
      this.k = var1;
   }

   float l() {
      return (float)zbuk.a((double)this.a.e().ap().a().a(this.a()));
   }

   protected void finalize() throws Exception {
      this.c(false);
   }

   public void m() {
      this.c(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void c(boolean var1) {
      if (!this.n) {
         if (var1 && this.b != null) {
            this.b.n();
         }

         this.n = true;
      }

   }
}
